package conson.tech.manage.api.coupons.form;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Description: 获取用户优惠券配置、用户优惠券锁定、解锁、核销入参实体
 * Author: guoxt
 * Date: 2020/7/27 11:02
 */
@Data
public class CouponOperForm {

    /**
     * 优惠券券码（多个）
     */
    @ApiModelProperty(value = "优惠券券码（多个）")
    private List<String> couponsCodes;

    /**
     * 优惠券券码（多个）
     */
    @ApiModelProperty(value = "优惠券券码（单个）")
    private String couponsCode;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
}
